#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from mmw.ars548 import ARS548Loader
import sys
import os
import re
import argparse

if __name__ == '__main__':
    parser = argparse.ArgumentParser(description='MMW Radar Data Loader')
    parser.add_argument('-f', '--filename', help='the file to load', required=True)
    parser.add_argument('-o', '--output', default='./output', help='the output file', required=False)
    args = parser.parse_args()
    loader = ARS548Loader()
    loader.load(args.filename)
    if not os.path.exists(args.output):
        os.makedirs(args.output)
    loader.dump(args.output)
